// 党建服务 - 需要权限控制的菜单
const partyJurisdictionRoutes = [
  {
    path: '/partyBuilding',
    name: 'partyBuilding',
    meta: {
      title: '党建服务'
    },
    component: () => import('@/views/partyBuilding')
  },
  {
    path: '/partyBuilding/Activity',
    name: 'partyBuilding-activity',
    meta: {
      title: '党建活动'
    },
    component: () => import('@/views/partyBuilding/Activity')
  },
  {
    path: '/partyBuilding/Study',
    name: 'partyBuilding-study',
    meta: {
      title: '党建学习'
    },
    component: () => import('@/views/partyBuilding/Study')
  },
  {
    path: '/partyBuilding/My',
    name: 'partyBuilding-my',
    meta: {
      title: '我的信息'
    },
    component: () => import('@/views/partyBuilding/My')
  }
]

// 党建服务 - 不需要权限控制的菜单
const partyWhiteRoutes = [
  {
    path: '/partyBuilding/activity/detail',
    name: 'partyBuilding-activity-detail',
    meta: {
      title: '党建活动详情'
    },
    component: () => import('@/views/partyBuilding/Activity/Detail')
  },
  {
    path: '/partyBuilding/My/Wish',
    name: 'partyBuilding-my-wish',
    meta: {
      title: '党员心愿'
    },
    component: () => import('@/views/partyBuilding/My/Wish')
  },
  {
    path: '/partyBuilding/My/Act',
    name: 'partyBuilding-my-act',
    meta: {
      title: '我的活动'
    },
    component: () => import('@/views/partyBuilding/My/Act')
  },
  {
    path: '/partyBuilding/Study/detail',
    name: 'partyBuilding-study-detail',
    meta: {
      title: '学习详情'
    },
    component: () => import('@/views/partyBuilding/Study/Detail')
  }
]

// 党建公告 - 菜单
const partyBuildingRoutes = [...partyJurisdictionRoutes, ...partyWhiteRoutes]

export { partyJurisdictionRoutes, partyWhiteRoutes, partyBuildingRoutes }
